package Day11.File;

import java.io.File;
import java.io.IOException;

public class Lian02 {
    public static void main(String[] args) throws IOException {
//        method1();
//        method2();
        File file=new File("H:\\itheima\\aaa\\bbb\\ccc\\ddd");
        boolean mkdirs = file.mkdirs();
        System.out.println(mkdirs);
    }

    private static void method2() {
        File file=new File("H:\\itheima\\aaa");
        boolean mkdir = file.mkdir();
        System.out.println(mkdir);
    }

    private static void method1() throws IOException {
        File file=new File("H:\\itheima\\aaa.txt");
        boolean result = file.createNewFile();
        System.out.println(result);
    }
}
